(log-edit-changelog-paragraph): Return point-max as the end of the
authorRichard M. Stallman <rms@gnu.org>
Sun, 27 May 2007 23:17:32 +0000 (23:17 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 27 May 2007 23:17:32 +0000 (23:17 +0000)
ChangeLog paragraph when it ends without a line termination.

lisp/log-edit.el

index ed0a5c464e9978022a0f048b461cc98176588458..8f63635ee49c00068fdb268f26d8130cb7862849 100644 (file)
@@ -538,7 +538,7 @@ If we are between paragraphs, return the previous paragraph."
             (point))
           (if (re-search-forward "^[ \t\n]*$" nil t)
               (match-beginning 0)
-            (point)))))
+            (point-max)))))
 
 (defun log-edit-changelog-subparagraph ()
   "Return the bounds of the ChangeLog subparagraph containing point.